﻿using System.Collections;

namespace RAP.Web.Libary.Common.Model.Session
{
  /// <summary>
  /// 
  /// </summary>
  public interface IWebUserSession : IUserSession
  {
    /// <summary>
    /// 菜单
    /// </summary>
    IDictionary Menus { get; set; }

    /// <summary>
    /// 数据权限
    /// </summary>
    IDictionary DataPowers { get; set; }

    /// <summary>
    /// 
    /// </summary>
    /// <param name="code"></param>
    /// <returns></returns>
    bool HasMenuPower(string code);

    /// <summary>
    /// 
    /// </summary>
    /// <param name="code"></param>
    /// <returns></returns>
    bool HasDataPower(string code);
  }
}
